<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"><title>极客大挑战的wp | heit0ng</title><meta name="author" content="heit0ng"><meta name="copyright" content="heit0ng"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="极客大挑战之前忘了弄了emmm，当时弄博客出现bug了弄不了 现在传上来，2021年的极客大挑战 web的图崩了找不到了 图有点花 第一次弄博客可以体验不好，请多谅解 密码：Classical music: 打开某盘，看到这个 Emmm…大段文字，不像是编码，采用维吉尼亚爆破  最后有一段英语 connect the flag with underscores and add uppercase">
<meta property="og:type" content="article">
<meta property="og:title" content="极客大挑战的wp">
<meta property="og:url" content="https://heit0ng.gitee.io/2022/01/25/%E6%9E%81%E5%AE%A2%E5%A4%A7%E6%8C%91%E6%88%98/index.html">
<meta property="og:site_name" content="heit0ng">
<meta property="og:description" content="极客大挑战之前忘了弄了emmm，当时弄博客出现bug了弄不了 现在传上来，2021年的极客大挑战 web的图崩了找不到了 图有点花 第一次弄博客可以体验不好，请多谅解 密码：Classical music: 打开某盘，看到这个 Emmm…大段文字，不像是编码，采用维吉尼亚爆破  最后有一段英语 connect the flag with underscores and add uppercase">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://s2.loli.net/2022/01/28/JL6SfM3qxjobgeC.png">
<meta property="article:published_time" content="2022-01-25T15:04:58.128Z">
<meta property="article:modified_time" content="2022-02-11T15:23:22.109Z">
<meta property="article:author" content="heit0ng">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://s2.loli.net/2022/01/28/JL6SfM3qxjobgeC.png"><link rel="shortcut icon" href="/img/favicon.png"><link rel="canonical" href="https://heit0ng.gitee.io/2022/01/25/%E6%9E%81%E5%AE%A2%E5%A4%A7%E6%8C%91%E6%88%98/"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = { 
  root: '/',
  algolia: undefined,
  localSearch: undefined,
  translate: undefined,
  noticeOutdate: undefined,
  highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: false,
    post: false
  },
  runtime: '',
  date_suffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: undefined,
  lightbox: 'fancybox',
  Snackbar: undefined,
  source: {
    justifiedGallery: {
      js: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery@2/dist/fjGallery.min.js',
      css: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery@2/dist/fjGallery.min.css'
    }
  },
  isPhotoFigcaption: false,
  islazyload: false,
  isAnchor: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
  title: '极客大挑战的wp',
  isPost: true,
  isHome: false,
  isHighlightShrink: false,
  isToc: true,
  postUpdate: '2022-02-11 23:23:22'
}</script><noscript><style type="text/css">
  #nav {
    opacity: 1
  }
  .justified-gallery img {
    opacity: 1
  }

  #recent-posts time,
  #post-meta time {
    display: inline !important
  }
</style></noscript><script>(win=>{
    win.saveToLocal = {
      set: function setWithExpiry(key, value, ttl) {
        if (ttl === 0) return
        const now = new Date()
        const expiryDay = ttl * 86400000
        const item = {
          value: value,
          expiry: now.getTime() + expiryDay,
        }
        localStorage.setItem(key, JSON.stringify(item))
      },

      get: function getWithExpiry(key) {
        const itemStr = localStorage.getItem(key)

        if (!itemStr) {
          return undefined
        }
        const item = JSON.parse(itemStr)
        const now = new Date()

        if (now.getTime() > item.expiry) {
          localStorage.removeItem(key)
          return undefined
        }
        return item.value
      }
    }
  
    win.getScript = url => new Promise((resolve, reject) => {
      const script = document.createElement('script')
      script.src = url
      script.async = true
      script.onerror = reject
      script.onload = script.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        script.onload = script.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(script)
    })
  
      win.activateDarkMode = function () {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = function () {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
          if (t === 'dark') activateDarkMode()
          else if (t === 'light') activateLightMode()
        
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    
    const detectApple = () => {
      if(/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
        document.documentElement.classList.add('apple')
      }
    }
    detectApple()
    })(window)</script><meta name="generator" content="Hexo 5.4.0"></head><body><div id="web_bg"></div><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src="https://s2.loli.net/2022/01/28/RkXzVpjubg3yGEI.png" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="site-data is-center"><div class="data-item"><a href="/archives/"><div class="headline">文章</div><div class="length-num">11</div></a></div><div class="data-item"><a href="/tags/"><div class="headline">标签</div><div class="length-num">0</div></a></div><div class="data-item"><a href="/categories/"><div class="headline">分类</div><div class="length-num">0</div></a></div></div><hr/></div></div><div class="post" id="body-wrap"><header class="post-bg" id="page-header" style="background-image: url('https://s2.loli.net/2022/01/28/JL6SfM3qxjobgeC.png')"><nav id="nav"><span id="blog_name"><a id="site-name" href="/">heit0ng</a></span><div id="menus"><div id="toggle-menu"><a class="site-page"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="post-info"><h1 class="post-title">极客大挑战的wp</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">发表于</span><time class="post-meta-date-created" datetime="2022-01-25T15:04:58.128Z" title="发表于 2022-01-25 23:04:58">2022-01-25</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2022-02-11T15:23:22.109Z" title="更新于 2022-02-11 23:23:22">2022-02-11</time></span></div><div class="meta-secondline"><span class="post-meta-separator">|</span><span class="post-meta-pv-cv" id="" data-flag-title="极客大挑战的wp"><i class="far fa-eye fa-fw post-meta-icon"></i><span class="post-meta-label">阅读量:</span><span id="busuanzi_value_page_pv"></span></span></div></div></div></header><main class="layout" id="content-inner"><div id="post"><article class="post-content" id="article-container"><h1 id="极客大挑战"><a href="#极客大挑战" class="headerlink" title="极客大挑战"></a>极客大挑战</h1><p>之前忘了弄了emmm，当时弄博客出现bug了弄不了</p>
<p>现在传上来，2021年的极客大挑战</p>
<p>web的图崩了找不到了</p>
<p>图有点花</p>
<p>第一次弄博客可以体验不好，请多谅解</p>
<h2 id="密码："><a href="#密码：" class="headerlink" title="密码："></a>密码：</h2><h3 id="Classical-music"><a href="#Classical-music" class="headerlink" title="Classical music:"></a>Classical music:</h3><p> 打开某盘，看到这个<img src="https://s2.loli.net/2022/01/26/KofACIMwzXUtxRq.png" alt="1.png"></p>
<p>Emmm…大段文字，不像是编码，采用维吉尼亚爆破</p>
<p><img src="https://s2.loli.net/2022/01/26/JhPVlyTnrmapq1W.png" alt="2.png"></p>
<p>最后有一段英语</p>
<p>connect the flag with underscores and add uppercase syc and curly braces the flag is lowercase key 把密钥用下划线连接起来就可以了</p>
<h3 id="easy-house-of-Classic-Crypto"><a href="#easy-house-of-Classic-Crypto" class="headerlink" title="easy house of Classic Crypto:"></a>easy house of Classic Crypto:</h3><p><img src="https://s2.loli.net/2022/01/26/SGQ4IchlXbz2OxZ.png" alt="3.png"></p>
<h3 id="三个也可以："><a href="#三个也可以：" class="headerlink" title="三个也可以："></a>三个也可以：<img src="https://s2.loli.net/2022/01/26/LSWg6ANo9TtZPE2.png" alt="4.png"></h3><p>一个rsa算法，不过n由三个组成，应该先把p,q，r求出来，再去求d<img src="https://s2.loli.net/2022/01/26/UBKPlhuq5MnCjSb.png" alt="5.png"></p>
<p>这里用工具求出p,q,r<img src="https://s2.loli.net/2022/01/26/WGQuEizbqdZITL9.png" alt="6.png"></p>
<p>然后写按正常程序写脚本，记得提前安装gmpy2,libnum库![img]</p>
<h2 id="Pwn"><a href="#Pwn" class="headerlink" title="Pwn:"></a>Pwn:</h2><h3 id="恋爱小游戏："><a href="#恋爱小游戏：" class="headerlink" title="恋爱小游戏："></a>恋爱小游戏：</h3><p>拖入ida64位打开</p>
<p><img src="https://s2.loli.net/2022/01/26/i8Mp4WsBVaw1Hzc.png" alt="1.png"></p>
<p>Buf24个字节，s2 8个，读取0x20(32)个正好覆盖完，strcmp有点问题，所以随便传入什么值都OK，写exp<img src="https://s2.loli.net/2022/01/26/jnZo97SpuqNOeMm.png" alt="2.png"></p>
<p>运行</p>
<p><img src="https://s2.loli.net/2022/01/26/sAj4avURVytW3N8.png" alt="3.png"></p>
<h3 id="恋爱游戏2-0："><a href="#恋爱游戏2-0：" class="headerlink" title="恋爱游戏2.0："></a>恋爱游戏2.0：</h3><p>拖进ida64位，发现和1.0几乎没区别，就比较那里有点区别</p>
<p><img src="https://s2.loli.net/2022/01/26/vlm4BasQzRkJweT.png" alt="4.png"></p>
<p>一个简单的栈溢出，直接写exp</p>
<p><img src="https://s2.loli.net/2022/01/26/ZRYacLoKP4Xj2H7.png" alt="5.png"></p>
<p>Over!</p>
<p><img src="https://s2.loli.net/2022/01/26/YRP3ySgmehTOLiZ.png" alt="6.png"></p>
<h3 id="Check-in："><a href="#Check-in：" class="headerlink" title="Check in："></a>Check in：</h3><p><img src="https://s2.loli.net/2022/01/26/TMhUjAFNyOSdlbn.png" alt="7.png"></p>
<p>拖ida看，emmm五则运算，66s内计算200次（第一次没注意时间我直接硬算的emmm）<img src="https://s2.loli.net/2022/01/26/4FTzVYQd3yANJea.png" alt="8.png"></p>
<p>写下exp</p>
<p>然后等他计算200次就OK了 </p>
<h2 id="Misc"><a href="#Misc" class="headerlink" title="Misc:"></a>Misc:</h2><h3 id="in-the-air"><a href="#in-the-air" class="headerlink" title="in the air:"></a>in the air:</h3><p>会场wifi的名称，我在第二天的一田收到的，当时忘了截图了，emmm…..</p>
<h3 id="SGA-Character："><a href="#SGA-Character：" class="headerlink" title="SGA Character："></a>SGA Character：</h3><p><img src="https://s2.loli.net/2022/01/26/Fz6M3WGaL85JUtc.png" alt="1.png">看看提示是说在mc里</p>
<p>Emmm…下载mc</p>
<p>找了一个十年mc老粉来看，发现是附魔台上的符号</p>
<p>百度查找<img src="https://s2.loli.net/2022/01/26/pLROYlSJ5HBQGt2.png" alt="2.png"></p>
<p>然后一个个对着翻译（眼睛真的快瞎了）</p>
<p>然后翻译出来</p>
<p>Congratulations you have mastered the essence of this symbol.</p>
<p>The standard galactic alphabet is a writing system used throughout the commander keen series.</p>
<p>It is a simple substitution cypher where each letter in the latin  alphabet has been substituted with a different symbol.</p>
<p>Here is your flag AM4Z1NGSGA1NG4M3</p>
<h3 id="Easysend："><a href="#Easysend：" class="headerlink" title="Easysend："></a>Easysend：</h3><p><img src="https://s2.loli.net/2022/01/26/VDxGE4wPnvI2iFb.png" alt="3.png"></p>
<p>直接把eth送到指定地址!</p>
<p>然后复制交易id发送到他题目给的链接得到flag（百度有教程怎么弄这东西)</p>
<h3 id="每日一溜"><a href="#每日一溜" class="headerlink" title="每日一溜:"></a>每日一溜:</h3><p><img src="https://s2.loli.net/2022/01/26/dgNiHsIjOu5kKbx.png" alt="4.png">我不是很懂这个描述是什么<img src="https://s2.loli.net/2022/01/26/IHneL4p7wcotOEU.png" alt="5.png"></p>
<p>？？？？？？？？？</p>
<p>然后看提示，是一个流量题，下一个Wireshark</p>
<p>拖进去：</p>
<p><img src="https://s2.loli.net/2022/01/26/CIRdLjKSJr5Nvgo.png" alt="6.png"></p>
<p>看完提示他总在暗示我看Http，那就直接导出吧<img src="https://s2.loli.net/2022/01/26/UEp6YcKFD9mWM3L.png" alt="7.png"></p>
<p>那个199K的肯定有点问题（先在网上看了很多流量题），改成txt看看<img src="https://s2.loli.net/2022/01/26/CoYDWvmeFHxyXag.png" alt="8.png"></p>
<p>乱码不对emmm，改成png和jpg好像也不对，改成rar，里面有个txt拖出来<img src="https://s2.loli.net/2022/01/26/iFGUKvtLRkuSoph.png" alt="9 _2_.png"></p>
<p>看着像base64解一下</p>
<p>发现第一个解不出来，第二个得到一个变表base64<img src="https://s2.loli.net/2022/01/26/pwtilZhHmCdoFTV.png" alt="9 _1_.png"></p>
<p>所以应该用这个变表去解第一排那个写脚本<img src="https://s2.loli.net/2022/01/26/5z67YKAkli9vONa.png" alt="9 _3_.png"></p>
<p>结束</p>
<h3 id="圣嘉然："><a href="#圣嘉然：" class="headerlink" title="圣嘉然："></a>圣嘉然：</h3><p>他给了个hint，是一个在线解密网站，应该要用的</p>
<p><img src="https://s2.loli.net/2022/01/26/Kajg3leus8N9Jqn.png" alt="10 _8_.png"></p>
<p>一个ans2,改后缀看看,md打开<img src="https://s2.loli.net/2022/01/26/6j4AcINv8tEk9De.png" alt="10 _6_.png"></p>
<p>应该是一个rar改一下<img src="https://s2.loli.net/2022/01/26/P6M9IcQDtsFSOGX.png" alt="10 _5_.png"></p>
<p>修复看看<img src="https://s2.loli.net/2022/01/26/Yl3yI52LHvJgSjn.png" alt="10 _4_.png"></p>
<p>逗我呢！！</p>
<p>后来折磨了半天发现这玩意得用360压缩包打开<img src="https://s2.loli.net/2022/01/26/IUJHsKh2wS8vf7k.png" alt="10 _3_.png"></p>
<p>（什么逆天发病文章）</p>
<p>文字应该没问题，把符号抽出来</p>
<p><img src="https://s2.loli.net/2022/01/26/utdJEPQRUeDpgTH.png" alt="10 _2_.png">然后用这个解密</p>
<p><img src="https://s2.loli.net/2022/01/26/jtoiPakxCOeY6JZ.png" alt="10 _7_.png">看着像栅栏解密同样用他给的网址(不要用其他的在线解密，不对！！！！) <img src="https://s2.loli.net/2022/01/26/nLVoil8fqzjAv7x.png" alt="10 _1_.png"></p>
<h3 id="烧饼："><a href="#烧饼：" class="headerlink" title="烧饼："></a>烧饼：</h3><figure class="highlight c"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">#<span class="meta-keyword">include</span><span class="meta-string">&lt;stdio.h&gt;</span></span></span><br><span class="line"><span class="function"><span class="keyword">int</span> <span class="title">main</span><span class="params">()</span></span></span><br><span class="line"><span class="function"></span>&#123;</span><br><span class="line">	<span class="keyword">int</span> a;</span><br><span class="line">	<span class="keyword">float</span> b=<span class="number">2.7453</span>;</span><br><span class="line">	<span class="built_in">scanf</span>(<span class="string">&quot;%d&quot;</span>,&amp;a);</span><br><span class="line">	<span class="built_in">printf</span>(<span class="string">&quot;%.2f&quot;</span>,a*b);</span><br><span class="line">	<span class="keyword">return</span> <span class="number">0</span>;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h3 id="ezA-B"><a href="#ezA-B" class="headerlink" title="ezA+B"></a>ezA+B</h3><figure class="highlight cpp"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">#<span class="meta-keyword">include</span><span class="meta-string">&lt;stdio.h&gt;</span></span></span><br><span class="line"><span class="function"><span class="keyword">int</span> <span class="title">main</span><span class="params">()</span></span></span><br><span class="line"><span class="function"></span>&#123;</span><br><span class="line">	<span class="keyword">long</span> <span class="keyword">long</span> <span class="keyword">int</span> a,b;</span><br><span class="line">	<span class="keyword">long</span> <span class="keyword">long</span> <span class="keyword">int</span> c;</span><br><span class="line">	<span class="built_in">scanf</span>(<span class="string">&quot;%lld %lld&quot;</span>,&amp;a,&amp;b);</span><br><span class="line">	c = a + b;</span><br><span class="line">	<span class="built_in">printf</span>(<span class="string">&quot;%lld&quot;</span>,c);</span><br><span class="line">	<span class="keyword">return</span> <span class="number">0</span>;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h3 id="出勤："><a href="#出勤：" class="headerlink" title="出勤："></a>出勤：</h3><figure class="highlight c"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">#<span class="meta-keyword">include</span><span class="meta-string">&lt;stdio.h&gt;</span></span></span><br><span class="line"><span class="function"><span class="keyword">int</span> <span class="title">main</span><span class="params">()</span></span></span><br><span class="line"><span class="function"></span>&#123;</span><br><span class="line">	<span class="keyword">int</span> a, b;</span><br><span class="line">	<span class="keyword">double</span> c;</span><br><span class="line">	<span class="built_in">scanf</span>(<span class="string">&quot;%d&quot;</span>,&amp;a);</span><br><span class="line">	<span class="keyword">if</span> (a &gt;= <span class="number">0</span> &amp;&amp; a &lt;= <span class="number">50</span>)</span><br><span class="line">	&#123;</span><br><span class="line">		c = a * <span class="number">1.0</span>;</span><br><span class="line">		<span class="keyword">if</span> (a == <span class="number">50</span>)</span><br><span class="line">		&#123;</span><br><span class="line">			b = <span class="number">1</span>;</span><br><span class="line">		&#125;</span><br><span class="line">		<span class="keyword">else</span></span><br><span class="line">		&#123;</span><br><span class="line">			b = <span class="number">0</span>;</span><br><span class="line">		&#125;</span><br><span class="line">		<span class="built_in">printf</span>(<span class="string">&quot;%.1f %d&quot;</span>,c,b);</span><br><span class="line">	&#125;</span><br><span class="line">	<span class="keyword">if</span> (a &gt; <span class="number">50</span> &amp;&amp; a &lt;= <span class="number">100</span>)</span><br><span class="line">	&#123;</span><br><span class="line">		c = <span class="number">50</span> + (a - <span class="number">50</span>) * <span class="number">0.7</span>;</span><br><span class="line">		b = <span class="number">1</span>;</span><br><span class="line">		<span class="built_in">printf</span>(<span class="string">&quot;%.1f %d&quot;</span>,c,b);</span><br><span class="line">	&#125;</span><br><span class="line">	<span class="keyword">if</span> (a &gt; <span class="number">100</span>)</span><br><span class="line">	&#123;</span><br><span class="line">		c = <span class="number">85</span> + (a - <span class="number">100</span>) * <span class="number">0.5</span>;</span><br><span class="line">		b =(<span class="keyword">int</span>)c / <span class="number">50</span>;</span><br><span class="line">		<span class="built_in">printf</span>(<span class="string">&quot;%.1f %d&quot;</span>,c,b);</span><br><span class="line">	&#125;</span><br><span class="line">	<span class="keyword">return</span> <span class="number">0</span>;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h3 id="五则运算："><a href="#五则运算：" class="headerlink" title="五则运算："></a>五则运算：</h3><figure class="highlight c"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">#<span class="meta-keyword">include</span><span class="meta-string">&lt;stdio.h&gt;</span></span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">include</span><span class="meta-string">&lt;math.h&gt;</span></span></span><br><span class="line"><span class="function"><span class="keyword">int</span> <span class="title">main</span><span class="params">()</span></span></span><br><span class="line"><span class="function"></span>&#123;</span><br><span class="line">	<span class="keyword">int</span> a,b;</span><br><span class="line">	<span class="keyword">char</span> c;</span><br><span class="line">	<span class="keyword">double</span> d;</span><br><span class="line">	<span class="built_in">scanf</span>(<span class="string">&quot;%d%c%d&quot;</span>,&amp;a,&amp;c,&amp;b);</span><br><span class="line">	<span class="keyword">if</span>(b!=<span class="number">0</span>&amp;&amp;a*b&lt;<span class="built_in">pow</span>(<span class="number">2</span>,<span class="number">31</span>)<span class="number">-1</span>)</span><br><span class="line">&#123;</span><br><span class="line">	d=a*<span class="number">1.0</span>/b;</span><br><span class="line">	<span class="keyword">switch</span>(c)</span><br><span class="line">	&#123;</span><br><span class="line">		<span class="keyword">case</span><span class="number">&#x27;</span>+<span class="string">&#x27;:</span></span><br><span class="line"><span class="string">			printf(&quot;%d&quot;,a+b);break;</span></span><br><span class="line"><span class="string">		case&#x27;</span>-<span class="string">&#x27;:</span></span><br><span class="line"><span class="string">			printf(&quot;%d&quot;,a-b);break;</span></span><br><span class="line"><span class="string">		case&#x27;</span>*<span class="string">&#x27;:</span></span><br><span class="line"><span class="string">			printf(&quot;%d&quot;,a*b);break;</span></span><br><span class="line"><span class="string">		case&#x27;</span>/<span class="string">&#x27;:</span></span><br><span class="line"><span class="string">			printf(&quot;%.2f&quot;,d);break;</span></span><br><span class="line"><span class="string">		case&#x27;</span>%<span class="string">&#x27;:</span></span><br><span class="line"><span class="string">			printf(&quot;%d&quot;,a%b);break;</span></span><br><span class="line"><span class="string">		default:</span></span><br><span class="line"><span class="string">			printf(&quot;error&quot;);</span></span><br><span class="line"><span class="string">	&#125;</span></span><br><span class="line"><span class="string">&#125;</span></span><br><span class="line"><span class="string">	else</span></span><br><span class="line"><span class="string">	&#123;</span></span><br><span class="line"><span class="string">		printf(&quot;error&quot;);</span></span><br><span class="line"><span class="string">	&#125;</span></span><br><span class="line"><span class="string">	return 0;</span></span><br><span class="line"><span class="string">&#125;</span></span><br></pre></td></tr></table></figure>

<h3 id="美国人："><a href="#美国人：" class="headerlink" title="美国人："></a>美国人：</h3><figure class="highlight cpp"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">#<span class="meta-keyword">include</span><span class="meta-string">&lt;iostream&gt;</span></span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">include</span><span class="meta-string">&lt;cstring&gt;</span></span></span><br><span class="line"><span class="keyword">using</span> <span class="keyword">namespace</span> std;</span><br><span class="line"><span class="function"><span class="keyword">int</span> <span class="title">main</span><span class="params">()</span> </span></span><br><span class="line"><span class="function"></span>&#123;</span><br><span class="line">	<span class="keyword">int</span> h1,h2,m1,m2;</span><br><span class="line">	<span class="keyword">int</span> nh=<span class="number">0</span>,nm=<span class="number">0</span>;</span><br><span class="line">	<span class="built_in">scanf</span>(<span class="string">&quot;%d %d %d %d&quot;</span>,&amp;h1,&amp;m1,&amp;h2,&amp;m2);	</span><br><span class="line">	<span class="keyword">if</span>((h1==h2)&amp;&amp;(m1==m2))</span><br><span class="line">    &#123;</span><br><span class="line">		cout&lt;&lt;<span class="string">&quot;24 0&quot;</span>;</span><br><span class="line">		<span class="keyword">return</span> <span class="number">0</span>;</span><br><span class="line">	&#125; </span><br><span class="line">	<span class="keyword">if</span>((h1==h2)&amp;&amp;(h1==<span class="number">0</span>)) </span><br><span class="line">    &#123;</span><br><span class="line">		cout&lt;&lt;<span class="string">&quot;0 &quot;</span>&lt;&lt;m2-m1;</span><br><span class="line">		<span class="keyword">return</span> <span class="number">0</span>;</span><br><span class="line">	&#125;	</span><br><span class="line">	<span class="keyword">if</span>((h1!=h2)&amp;&amp;(h1==<span class="number">24</span>)&amp;&amp;(h2==<span class="number">0</span>)) </span><br><span class="line">    &#123;</span><br><span class="line">		cout&lt;&lt;<span class="string">&quot;0 &quot;</span>&lt;&lt;m2-m1;</span><br><span class="line">		<span class="keyword">return</span> <span class="number">0</span>;</span><br><span class="line">	&#125;</span><br><span class="line">	<span class="keyword">if</span>((h1==h2)&amp;&amp;(h1!=<span class="number">0</span>)) </span><br><span class="line">    &#123;</span><br><span class="line">		cout&lt;&lt;<span class="string">&quot;0 &quot;</span>&lt;&lt;m2-m1;</span><br><span class="line">		<span class="keyword">return</span> <span class="number">0</span>;</span><br><span class="line">	&#125;</span><br><span class="line">	<span class="keyword">if</span>((h1&gt;h2)&amp;&amp;(h1==<span class="number">24</span>)) </span><br><span class="line">    &#123;</span><br><span class="line">		cout&lt;&lt;h2&lt;&lt;<span class="string">&quot; &quot;</span>&lt;&lt;m2;</span><br><span class="line">		<span class="keyword">return</span> <span class="number">0</span>;</span><br><span class="line">	&#125;</span><br><span class="line">	<span class="keyword">if</span>(h1&lt;h2) </span><br><span class="line">    &#123;</span><br><span class="line">		<span class="keyword">if</span>(m1&lt;=m2) </span><br><span class="line">        &#123;</span><br><span class="line">			cout&lt;&lt;h2-h1&lt;&lt;<span class="string">&quot; &quot;</span>&lt;&lt;m2-m1;</span><br><span class="line">			<span class="keyword">return</span> <span class="number">0</span>;</span><br><span class="line">		&#125; </span><br><span class="line">        <span class="keyword">else</span> </span><br><span class="line">        &#123;</span><br><span class="line">			cout&lt;&lt;h2-h1<span class="number">-1</span>&lt;&lt;<span class="string">&quot; &quot;</span>&lt;&lt;m2-m1+<span class="number">60</span>;</span><br><span class="line">			<span class="keyword">return</span> <span class="number">0</span>;</span><br><span class="line">		&#125;</span><br><span class="line">	&#125;	</span><br><span class="line">	<span class="keyword">if</span>((h1&gt;h2)&amp;&amp;(h1!=<span class="number">24</span>)) </span><br><span class="line">    &#123;</span><br><span class="line">		<span class="keyword">if</span>(m1&lt;=m2) </span><br><span class="line">        &#123;</span><br><span class="line">			cout&lt;&lt;h2-h1+<span class="number">24</span>&lt;&lt;<span class="string">&quot; &quot;</span>&lt;&lt;m2-m1;</span><br><span class="line">			<span class="keyword">return</span> <span class="number">0</span>;</span><br><span class="line">		&#125; </span><br><span class="line">        <span class="keyword">else</span> </span><br><span class="line">        &#123;</span><br><span class="line">			cout&lt;&lt;h2-h1<span class="number">-1</span>+<span class="number">24</span>&lt;&lt;<span class="string">&quot; &quot;</span>&lt;&lt;m2-m1+<span class="number">60</span>;</span><br><span class="line">			<span class="keyword">return</span> <span class="number">0</span>;</span><br><span class="line">		&#125;</span><br><span class="line">	&#125;	</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<p>（我不是很懂为什么12 00 12 00 会代表学习了24h，不该0吗）</p>
<h3 id="平均数："><a href="#平均数：" class="headerlink" title="平均数："></a>平均数：</h3><figure class="highlight cpp"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">#<span class="meta-keyword">include</span><span class="meta-string">&lt;stdio.h&gt;</span></span></span><br><span class="line"><span class="function"><span class="keyword">int</span> <span class="title">main</span><span class="params">()</span></span></span><br><span class="line"><span class="function"></span>&#123;</span><br><span class="line">	<span class="keyword">int</span> n,i=<span class="number">0</span>;</span><br><span class="line">	<span class="keyword">long</span> <span class="keyword">int</span> sum=<span class="number">0</span>;</span><br><span class="line">	<span class="keyword">double</span> average;</span><br><span class="line">	<span class="built_in">scanf</span>(<span class="string">&quot;%d&quot;</span>,&amp;n);</span><br><span class="line">	<span class="keyword">while</span>(n&gt;<span class="number">0</span>)</span><br><span class="line">	&#123;</span><br><span class="line">		</span><br><span class="line">		sum=sum+n;</span><br><span class="line">		i++;</span><br><span class="line">		<span class="built_in">scanf</span>(<span class="string">&quot;%d &quot;</span>,&amp;n);</span><br><span class="line">	&#125;</span><br><span class="line">	average=sum*<span class="number">1.0</span>/i;</span><br><span class="line">	<span class="built_in">printf</span>(<span class="string">&quot;%.2f&quot;</span>,average);</span><br><span class="line">	<span class="keyword">return</span> <span class="number">0</span>;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h3 id="解密："><a href="#解密：" class="headerlink" title="解密："></a>解密：</h3><figure class="highlight cpp"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">#<span class="meta-keyword">include</span><span class="meta-string">&lt;stdio.h&gt;</span></span></span><br><span class="line"><span class="function"><span class="keyword">int</span> <span class="title">main</span><span class="params">()</span></span></span><br><span class="line"><span class="function"></span>&#123;</span><br><span class="line">	<span class="keyword">int</span> n,i=<span class="number">0</span>,flag;</span><br><span class="line">	<span class="built_in">scanf</span>(<span class="string">&quot;%d&quot;</span>,&amp;n);</span><br><span class="line">	<span class="keyword">while</span>(n&gt;<span class="number">0</span>)</span><br><span class="line">	&#123;	</span><br><span class="line">		flag=n^i;</span><br><span class="line">		i++;</span><br><span class="line">		<span class="built_in">printf</span>(<span class="string">&quot;%c&quot;</span>,flag);</span><br><span class="line">		<span class="built_in">scanf</span>(<span class="string">&quot;%d &quot;</span>,&amp;n);</span><br><span class="line">	&#125;</span><br><span class="line">	<span class="keyword">return</span> <span class="number">0</span>;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h3 id="DX-Rating："><a href="#DX-Rating：" class="headerlink" title="DX Rating："></a>DX Rating：</h3><figure class="highlight cpp"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">#<span class="meta-keyword">include</span><span class="meta-string">&lt;iostream&gt;</span></span></span><br><span class="line"><span class="keyword">using</span> <span class="keyword">namespace</span> std;</span><br><span class="line"><span class="function"><span class="keyword">int</span> <span class="title">main</span><span class="params">()</span></span></span><br><span class="line"><span class="function"></span>&#123;</span><br><span class="line">	<span class="keyword">int</span> a[<span class="number">10000</span>]=&#123;<span class="number">0</span>&#125;;</span><br><span class="line">	<span class="keyword">int</span> score,sum=<span class="number">0</span>,b=<span class="number">0</span>,c=<span class="number">0</span>;</span><br><span class="line">	<span class="keyword">char</span> n=<span class="number">0</span>;</span><br><span class="line">	<span class="keyword">int</span> i,j,t,d=<span class="number">0</span>;</span><br><span class="line">	<span class="keyword">while</span>(<span class="number">1</span>)<span class="comment">//输入分数</span></span><br><span class="line">	&#123;</span><br><span class="line">		cin &gt;&gt; score;</span><br><span class="line">		<span class="keyword">if</span>(score==(<span class="number">-1</span>))</span><br><span class="line">			<span class="keyword">break</span>;</span><br><span class="line">		</span><br><span class="line">		</span><br><span class="line">			a[d]=score;</span><br><span class="line">			d++;</span><br><span class="line">			c++;</span><br><span class="line">		</span><br><span class="line">	&#125;</span><br><span class="line">	<span class="keyword">for</span> (i = <span class="number">0</span>; i &lt; c; i++)<span class="comment">//排序</span></span><br><span class="line">	&#123;</span><br><span class="line">		<span class="keyword">for</span> (j = i + <span class="number">1</span>; j &lt; c;j++) </span><br><span class="line">		<span class="keyword">if</span> (a[i] &lt; a[j])</span><br><span class="line">		&#123;</span><br><span class="line">			t = a[i];</span><br><span class="line">			a[i] = a[j];</span><br><span class="line">			a[j] = t;</span><br><span class="line">		&#125;</span><br><span class="line">	&#125;</span><br><span class="line">    cin &gt;&gt; n;</span><br><span class="line">	<span class="keyword">if</span>(n==<span class="string">&#x27;A&#x27;</span>)</span><br><span class="line">	&#123;b=<span class="number">500</span>;&#125;</span><br><span class="line">	<span class="keyword">else</span> <span class="keyword">if</span>(n==<span class="string">&#x27;B&#x27;</span>)</span><br><span class="line">	&#123;b=<span class="number">750</span>;&#125;	</span><br><span class="line">	<span class="keyword">else</span> <span class="keyword">if</span>(n==<span class="string">&#x27;C&#x27;</span>)</span><br><span class="line">	&#123;b=<span class="number">1000</span>;&#125;</span><br><span class="line">	<span class="keyword">else</span> <span class="keyword">if</span>(n==<span class="string">&#x27;D&#x27;</span>)</span><br><span class="line">	&#123;b=<span class="number">1200</span>;&#125;</span><br><span class="line">	<span class="keyword">else</span> <span class="keyword">if</span>(n==<span class="string">&#x27;E&#x27;</span>)</span><br><span class="line">	&#123;b=<span class="number">1400</span>;&#125;</span><br><span class="line">	<span class="keyword">else</span> <span class="keyword">if</span>(n==<span class="string">&#x27;F&#x27;</span>)</span><br><span class="line">	&#123;b=<span class="number">1500</span>;&#125;</span><br><span class="line">	sum=b+a[<span class="number">0</span>]+a[<span class="number">1</span>]+a[<span class="number">2</span>]+a[<span class="number">3</span>]+a[<span class="number">4</span>];</span><br><span class="line">	cout &lt;&lt; sum;</span><br><span class="line">	<span class="keyword">return</span> <span class="number">0</span>;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<p>（同样的脚本，拿c写就是全部wa，用c++改下头文件和输入输出就是全对，我不是很能理解）</p>
<h2 id="逆向："><a href="#逆向：" class="headerlink" title="逆向："></a>逆向：</h2><h3 id="RE0："><a href="#RE0：" class="headerlink" title="RE0："></a>RE0：</h3><p>无壳，拖进64位ida</p>
<p><img src="https://s2.loli.net/2022/01/26/F7NcTxwCJeI2aUZ.png" alt="1 _3_.png"></p>
<p>得到flag</p>
<h3 id="刘壮桌面大师："><a href="#刘壮桌面大师：" class="headerlink" title="刘壮桌面大师："></a>刘壮桌面大师：</h3><p>拖进jep，签到题咱们直接看string</p>
<p><img src="https://s2.loli.net/2022/01/26/sgnNbMEeGXYx1Fc.png" alt="1 _1_.png"></p>
<p>找到flag</p>
<h3 id="调试："><a href="#调试：" class="headerlink" title="调试："></a>调试：</h3><p>（题目都这么说了肯定要调）</p>
<p>先拖进ida64位</p>
<p>找到start函数</p>
<p><img src="https://s2.loli.net/2022/01/26/Xuf63ijykcqVbAv.png" alt="1 _4_.png"></p>
<p>果然什么都没有<img src="https://s2.loli.net/2022/01/26/h4cnrzqMOjKvIDf.png" alt="1 _5_.png"></p>
<p>直接远程调试</p>
<p><img src="https://s2.loli.net/2022/01/26/7QpyBW6IiTGNEVH.png" alt="1 _7_.png"></p>
<p>设置断点，逐句调试，发现到jnz进入不到主要函数改成jz</p>
<p><img src="https://s2.loli.net/2022/01/26/puASmwBQxeInWq8.png" alt="1 _2_.png">继续调试</p>
<p>指向var那里，已经有字符显现</p>
<p>然后返回虚拟机，发现是个自解密</p>
<p><img src="https://s2.loli.net/2022/01/26/iIshfT8PnmHyD7M.png" alt="1 _6_.png"></p>
<p>Over</p>
<h3 id="买activity"><a href="#买activity" class="headerlink" title="买activity"></a>买activity</h3><p>图崩了没了，网上应该找得到题的</p>
<h3 id="Re1"><a href="#Re1" class="headerlink" title="Re1:"></a>Re1:</h3><h3 id=""><a href="#" class="headerlink" title=""></a><img src="https://s2.loli.net/2022/01/26/y3TFUbr2HwsQGYn.png" alt="1 _2_.png"></h3><p>查壳后发现无壳，拖进ida64位</p>
<p>逻辑比较简单，输入44字节的字符串，经过enc0与enc1两个函数处理，然后与date数据比较即可</p>
<p>先看看enc0<img src="https://s2.loli.net/2022/01/26/jJmcq18D2sduI54.png" alt="1 _7_.png"></p>
<p>有base64那味了</p>
<p><img src="https://s2.loli.net/2022/01/26/fy4ocUdI9RHaAEn.png" alt="1 _3_.png"></p>
<p>深入了解后就是Base64没有魔改</p>
<p>看看enc1<img src="https://s2.loli.net/2022/01/26/AcpOdPgkR8GjHF4.png" alt="10.png"></p>
<p>一个简单的异或，接下来就是提取数据写脚本</p>
<p>先将date异或<img src="https://s2.loli.net/2022/01/26/KmqhgDjP5bOaiVp.png" alt="1 _5_.png">然后拿去base64解码，得到flag</p>
<h3 id="Easypyc"><a href="#Easypyc" class="headerlink" title="Easypyc:"></a>Easypyc:</h3><p>得到个easypyc.exe文件emmm，应该使用Pyc包装的嘛</p>
<p>先去弄一个pyinstxtractor把他从exx变成Pyc后缀的</p>
<p>然后弄一个uncompyle6变成py文件!</p>
<p>查看源码<img src="https://s2.loli.net/2022/01/26/S25q3YrlNucV8ZO.png" alt="1 _4_.png"></p>
<p><img src="https://s2.loli.net/2022/01/26/NRx6IwBbS9ug3KQ.png" alt="1 _1_.png"></p>
<p>输入数据经过3个函数处理</p>
<p>简单分析一下，对a和b不需要处理，C函数倒置一下</p>
<p><img src="https://s2.loli.net/2022/01/26/QxjPzWTsfe6oY8F.png" alt="1 _6_.png"></p>
<p>然后得到</p>
<h3 id="Win32"><a href="#Win32" class="headerlink" title="Win32:"></a>Win32:</h3><p>查一下，有壳<img src="https://s2.loli.net/2022/01/26/epKyjBdActuWlLX.png" alt="1 _9_.png"></p>
<p>用upx脱下壳</p>
<p>拖进ida64位打开strings</p>
<p><img src="https://s2.loli.net/2022/01/26/a1jCGHcQqhoPOti.png" alt="1 _3_.png"></p>
<p>发现最后一个有点可疑点进去<img src="https://s2.loli.net/2022/01/26/MfQ75z8OcLlYHNu.png" alt="1 _2_.png"></p>
<p>感觉黄色那个就是我们要处理的字符串，看下面感觉像base64，解密一下就可以了</p>
<h3 id="New-language："><a href="#New-language：" class="headerlink" title="New_language："></a>New_language：</h3><p>查一下</p>
<p><img src="https://s2.loli.net/2022/01/26/fctNLWHFkqT823d.png" alt="1 _7_.png"></p>
<p>NET,C#,拖进dnspy<img src="https://s2.loli.net/2022/01/26/smILDjdFn89y7gi.png" alt="1 _4_.png"></p>
<p>在左边找到主函数 new_language<img src="https://s2.loli.net/2022/01/26/HFyojBcEMwisITe.png" alt="1 _1_.png"></p>
<p>简单分析一下，flag为SYC{..}，然后对输入的数据通过geek函数处理，再与array2数组比较<img src="https://s2.loli.net/2022/01/26/f6JcKEH473RgAdk.png" alt="1 _6_.png"></p>
<p>Geek函数用脚本跑一下发现两个操作等于没操作，所以这个函数的意思是从sbox数组中找到与array2数组中相对应的数字，脚本如下，上面两个数组</p>
<p><img src="https://s2.loli.net/2022/01/26/N5zYJeOsdHuE3lT.png" alt="1 _5_.png"></p>
</article><div class="post-copyright"><div class="post-copyright__author"><span class="post-copyright-meta">文章作者: </span><span class="post-copyright-info"><a href="mailto:undefined">heit0ng</a></span></div><div class="post-copyright__type"><span class="post-copyright-meta">文章链接: </span><span class="post-copyright-info"><a href="https://heit0ng.gitee.io/2022/01/25/%E6%9E%81%E5%AE%A2%E5%A4%A7%E6%8C%91%E6%88%98/">https://heit0ng.gitee.io/2022/01/25/%E6%9E%81%E5%AE%A2%E5%A4%A7%E6%8C%91%E6%88%98/</a></span></div><div class="post-copyright__notice"><span class="post-copyright-meta">版权声明: </span><span class="post-copyright-info">本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">CC BY-NC-SA 4.0</a> 许可协议。转载请注明来自 <a href="https://heit0ng.gitee.io" target="_blank">heit0ng</a>！</span></div></div><div class="tag_share"><div class="post-meta__tag-list"></div><div class="post_share"><div class="social-share" data-image="https://s2.loli.net/2022/01/28/JL6SfM3qxjobgeC.png" data-sites="facebook,twitter,wechat,weibo,qq"></div><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/social-share.js/dist/css/share.min.css" media="print" onload="this.media='all'"><script src="https://cdn.jsdelivr.net/npm/social-share.js/dist/js/social-share.min.js" defer></script></div></div><nav class="pagination-post" id="pagination"><div class="prev-post pull-left"><a href="/2022/01/28/%E6%B1%87%E7%BC%96%E7%AC%94%E8%AE%B0/"><img class="prev-cover" src="https://s2.loli.net/2022/01/28/Swu3a6UXJ7ZpvLf.jpg" onerror="onerror=null;src='/img/404.jpg'" alt="cover of previous post"><div class="pagination-info"><div class="label">上一篇</div><div class="prev_info">入门级别的汇编</div></div></a></div><div class="next-post pull-right"><a href="/2021/11/02/hello-world/"><img class="next-cover" src="https://s2.loli.net/2022/01/28/RkXzVpjubg3yGEI.png" onerror="onerror=null;src='/img/404.jpg'" alt="cover of next post"><div class="pagination-info"><div class="label">下一篇</div><div class="next_info">Hello World</div></div></a></div></nav></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="is-center"><div class="avatar-img"><img src="https://s2.loli.net/2022/01/28/RkXzVpjubg3yGEI.png" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/></div><div class="author-info__name">heit0ng</div><div class="author-info__description"></div></div><div class="card-info-data is-center"><div class="card-info-data-item"><a href="/archives/"><div class="headline">文章</div><div class="length-num">11</div></a></div><div class="card-info-data-item"><a href="/tags/"><div class="headline">标签</div><div class="length-num">0</div></a></div><div class="card-info-data-item"><a href="/categories/"><div class="headline">分类</div><div class="length-num">0</div></a></div></div><a id="card-info-btn" target="_blank" rel="noopener" href="https://github.com/xxxxxx"><i class="fab fa-github"></i><span>Follow Me</span></a></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn card-announcement-animation"></i><span>公告</span></div><div class="announcement_content">This is my Blog</div></div><div class="sticky_layout"><div class="card-widget" id="card-toc"><div class="item-headline"><i class="fas fa-stream"></i><span>目录</span><span class="toc-percentage"></span></div><div class="toc-content"><ol class="toc"><li class="toc-item toc-level-1"><a class="toc-link" href="#%E6%9E%81%E5%AE%A2%E5%A4%A7%E6%8C%91%E6%88%98"><span class="toc-number">1.</span> <span class="toc-text">极客大挑战</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%AF%86%E7%A0%81%EF%BC%9A"><span class="toc-number">1.1.</span> <span class="toc-text">密码：</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#Classical-music"><span class="toc-number">1.1.1.</span> <span class="toc-text">Classical music:</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#easy-house-of-Classic-Crypto"><span class="toc-number">1.1.2.</span> <span class="toc-text">easy house of Classic Crypto:</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E4%B8%89%E4%B8%AA%E4%B9%9F%E5%8F%AF%E4%BB%A5%EF%BC%9A"><span class="toc-number">1.1.3.</span> <span class="toc-text">三个也可以：</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#Pwn"><span class="toc-number">1.2.</span> <span class="toc-text">Pwn:</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%81%8B%E7%88%B1%E5%B0%8F%E6%B8%B8%E6%88%8F%EF%BC%9A"><span class="toc-number">1.2.1.</span> <span class="toc-text">恋爱小游戏：</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%81%8B%E7%88%B1%E6%B8%B8%E6%88%8F2-0%EF%BC%9A"><span class="toc-number">1.2.2.</span> <span class="toc-text">恋爱游戏2.0：</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Check-in%EF%BC%9A"><span class="toc-number">1.2.3.</span> <span class="toc-text">Check in：</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#Misc"><span class="toc-number">1.3.</span> <span class="toc-text">Misc:</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#in-the-air"><span class="toc-number">1.3.1.</span> <span class="toc-text">in the air:</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#SGA-Character%EF%BC%9A"><span class="toc-number">1.3.2.</span> <span class="toc-text">SGA Character：</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Easysend%EF%BC%9A"><span class="toc-number">1.3.3.</span> <span class="toc-text">Easysend：</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%AF%8F%E6%97%A5%E4%B8%80%E6%BA%9C"><span class="toc-number">1.3.4.</span> <span class="toc-text">每日一溜:</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%9C%A3%E5%98%89%E7%84%B6%EF%BC%9A"><span class="toc-number">1.3.5.</span> <span class="toc-text">圣嘉然：</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E7%83%A7%E9%A5%BC%EF%BC%9A"><span class="toc-number">1.3.6.</span> <span class="toc-text">烧饼：</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#ezA-B"><span class="toc-number">1.3.7.</span> <span class="toc-text">ezA+B</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%87%BA%E5%8B%A4%EF%BC%9A"><span class="toc-number">1.3.8.</span> <span class="toc-text">出勤：</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E4%BA%94%E5%88%99%E8%BF%90%E7%AE%97%EF%BC%9A"><span class="toc-number">1.3.9.</span> <span class="toc-text">五则运算：</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E7%BE%8E%E5%9B%BD%E4%BA%BA%EF%BC%9A"><span class="toc-number">1.3.10.</span> <span class="toc-text">美国人：</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%B9%B3%E5%9D%87%E6%95%B0%EF%BC%9A"><span class="toc-number">1.3.11.</span> <span class="toc-text">平均数：</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E8%A7%A3%E5%AF%86%EF%BC%9A"><span class="toc-number">1.3.12.</span> <span class="toc-text">解密：</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#DX-Rating%EF%BC%9A"><span class="toc-number">1.3.13.</span> <span class="toc-text">DX Rating：</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E9%80%86%E5%90%91%EF%BC%9A"><span class="toc-number">1.4.</span> <span class="toc-text">逆向：</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#RE0%EF%BC%9A"><span class="toc-number">1.4.1.</span> <span class="toc-text">RE0：</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%88%98%E5%A3%AE%E6%A1%8C%E9%9D%A2%E5%A4%A7%E5%B8%88%EF%BC%9A"><span class="toc-number">1.4.2.</span> <span class="toc-text">刘壮桌面大师：</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E8%B0%83%E8%AF%95%EF%BC%9A"><span class="toc-number">1.4.3.</span> <span class="toc-text">调试：</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E4%B9%B0activity"><span class="toc-number">1.4.4.</span> <span class="toc-text">买activity</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Re1"><span class="toc-number">1.4.5.</span> <span class="toc-text">Re1:</span></a></li><li class="toc-item toc-level-3"><a class="toc-link"><span class="toc-number">1.4.6.</span> <span class="toc-text"></span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Easypyc"><span class="toc-number">1.4.7.</span> <span class="toc-text">Easypyc:</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Win32"><span class="toc-number">1.4.8.</span> <span class="toc-text">Win32:</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#New-language%EF%BC%9A"><span class="toc-number">1.4.9.</span> <span class="toc-text">New_language：</span></a></li></ol></li></ol></li></ol></div></div><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item"><a class="thumbnail" href="/2023/03/22/j2ee(2)/" title="j2ee(2)"><img src="https://s2.loli.net/2023/03/23/mTDuOeL67MFtgZs.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="j2ee(2)"/></a><div class="content"><a class="title" href="/2023/03/22/j2ee(2)/" title="j2ee(2)">j2ee(2)</a><time datetime="2023-03-22T15:50:01.860Z" title="发表于 2023-03-22 23:50:01">2023-03-22</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2023/03/22/j2ee(1)/" title="j2ee(1)"><img src="https://s2.loli.net/2023/03/22/3KqCOLtHBdvhMFe.webp" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="j2ee(1)"/></a><div class="content"><a class="title" href="/2023/03/22/j2ee(1)/" title="j2ee(1)">j2ee(1)</a><time datetime="2023-03-22T12:20:17.683Z" title="发表于 2023-03-22 20:20:17">2023-03-22</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2022/05/16/C%E8%AF%AD%E8%A8%80%E5%9B%BE%E4%B9%A6%E7%AE%A1%E7%90%86%E7%B3%BB%E7%BB%9F/" title="C语言图书管理系统"><img src="https://s2.loli.net/2022/05/16/ae4E7n2D3I5mqkh.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="C语言图书管理系统"/></a><div class="content"><a class="title" href="/2022/05/16/C%E8%AF%AD%E8%A8%80%E5%9B%BE%E4%B9%A6%E7%AE%A1%E7%90%86%E7%B3%BB%E7%BB%9F/" title="C语言图书管理系统">C语言图书管理系统</a><time datetime="2022-05-16T14:28:31.730Z" title="发表于 2022-05-16 22:28:31">2022-05-16</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2022/04/07/C++qt/" title="C++Qt"><img src="https://s2.loli.net/2022/04/07/Cyg9WQLqSNxX7Av.png" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="C++Qt"/></a><div class="content"><a class="title" href="/2022/04/07/C++qt/" title="C++Qt">C++Qt</a><time datetime="2022-04-07T12:41:19.618Z" title="发表于 2022-04-07 20:41:19">2022-04-07</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2022/03/12/c++%E7%9A%84%E7%9F%A5%E8%AF%86(1)/" title="c++的知识(1)"><img src="https://s2.loli.net/2022/03/12/QrwRKYfGEmP3vVL.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="c++的知识(1)"/></a><div class="content"><a class="title" href="/2022/03/12/c++%E7%9A%84%E7%9F%A5%E8%AF%86(1)/" title="c++的知识(1)">c++的知识(1)</a><time datetime="2022-03-12T13:48:26.310Z" title="发表于 2022-03-12 21:48:26">2022-03-12</time></div></div></div></div></div></div></main><footer id="footer"><div id="footer-wrap"><div class="copyright">&copy;2020 - 2023 By heit0ng</div><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="readmode" type="button" title="阅读模式"><i class="fas fa-book-open"></i></button><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button class="close" id="mobile-toc-button" type="button" title="目录"><i class="fas fa-list-ul"></i></button><button id="go-up" type="button" title="回到顶部"><i class="fas fa-arrow-up"></i></button></div></div><div><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.umd.js"></script><div class="js-pjax"></div><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div></body></html>